﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Ajc {
    public partial class SplashScreen : Form {

        private Timer timer;

        public SplashScreen(int timeout) {
            InitializeComponent();

            this.timer = new Timer();
            this.timer.Tick += new EventHandler(onTick);
            this.timer.Interval = timeout;
            this.timer.Start();
        }
        private void onTick(Object myObject,
                                            EventArgs myEventArgs)
        {
            this.timer.Stop();
            this.Close();
        }
    }
}
